from django.db import models
from utils.BaseModel import BaseModel
# Create your models here.
class Nav(BaseModel):
   name = models.CharField(max_length=20,verbose_name='导航名称')
   position = models.IntegerField(verbose_name='导航位置',default=0)#0:顶部 1:尾部
   link = models.CharField(max_length=200,verbose_name='导航链接',default='')
   class Meta:
       db_table = 'nav'
   def __str__(self):
       return self.name
